<?php
//рус
class App_Module_Admin_Component_Articles_Ctrl_Http_Web extends App_Module_Admin_Component_Articles_Ctrl_Http
{
    protected function PrimaryActionInit ($basicActionName)
    {
        Mozg::Layout('admin')->SetMenuActiveElement('articles/list');
    }

    /**
		экшен по-умолчанию
	*/
    public function PrAction ()
    {
        $this->listPr();
    }

    public function listPrAction()
    {
    	$blog = $this->GetBlogFromQueryId();
		$this->OutArticles($blog);
    }

    public function addPrAction($entry = null)
    {
    	$blog = $this->GetBlogFromQueryId();
    	$this->AddArticle($blog, $entry);
    }

    public function mediaaddPrAction()
    {
    	$blog = $this->GetBlogFromQueryId();
    	$this->AddArticle($blog);
    }

    public function savePrAction ()
    {
    	$blog = $this->GetBlogFromQueryId();
    	$this->SaveArticle($blog);
    }

    public function delPrAction()
    {
    	$blog = $this->GetBlogFromQueryId();
    	$this->DelArticle($blog);
    }

    public function commentslistPrAction()
    {
    	$blog = $this->GetBlogFromQueryId();
    	$this->OutComments($blog);
    }

    public function delcommentPrAction()
    {
    	$blog = $this->GetBlogFromQueryId();
    	$this->DelComment($blog);
    }
}